<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-on:click="fun">按钮</button>
        <button @click="fun">{{message}}</button>
    </div>
    <script src="../Dev-tools/vue.js"></script>
    <script>
        new Vue({
            data:{
                message:"hello world"
            },
            methods:{
                fun(){
                    alert("hello vue")
                }
            }
        }).$mount("#app")
    </script>
</body>
</html>